import request from '@/utils/request'

// 查询留言信息列表
export function listDemandmsg(query) {
  return request({
    url: '/system/demandmsg/list',
    method: 'get',
    params: query
  })
}

// 查询留言信息详细
export function getDemandmsg(sysDemandid) {
  return request({
    url: '/system/demandmsg/' + sysDemandid,
    method: 'get'
  })
}

// 新增留言信息
export function addDemandmsg(data) {
  return request({
    url: '/system/demandmsg',
    method: 'post',
    data: data
  })
}

// 修改留言信息
export function updateDemandmsg(data) {
  return request({
    url: '/system/demandmsg',
    method: 'put',
    data: data
  })
}

// 删除留言信息
export function delDemandmsg(sysDemandid) {
  return request({
    url: '/system/demandmsg/' + sysDemandid,
    method: 'delete'
  })
}

// 导出留言信息
export function exportDemandmsg(query) {
  return request({
    url: '/system/demandmsg/export',
    method: 'get',
    params: query
  })
}